package com.hzlh.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Description: 错误码定义
 * @Author: linker_zhang
 * @Date: Created in 2020/5/13 19:18
 * @Version:1.0.0
 */
@Getter
@AllArgsConstructor
public enum ResponseCode implements IResponseCode {
    // 成功
    SUCCESS(200, "成功"),
    // 失败
    FAIL(400, "系统繁忙，请稍后再试。"),
    // 标签重复
    CF(400, "标签重复"),
    // 服务器异常
    ERROR(400, "服务器异常"),
    // ID空
    ID_NULL(400, "ID不能为空"),
    // 无法获取当前用户
    INFO_OBTAIN_FAIL(400, "获取当前登录用户信息失败"),
    // ID空
    UN_LOGIN(10022, "未登录"),
    // 404
    NOT_FOUND(404, "未找到"),
    // 401
    GOODS_FIERY(401, "活动太火爆了，请稍后再试");


    private int code;
    private String msg;

}
